// const children = require('./getAll.js')
// console.log(children);
module.exports = {
    title: 'shop-db-api',
    description: '水果商城数据库字段与后端接口约定',
    themeConfig: {
        nav: [{ text: '指南', link: '/guide/' }, { text: '数据库', link: '/db/' }, { text: 'api', link: '/api/' }, { text: '首页', link: '/' }],
        displayAllHeaders: true,
        sidebar: {
            '/guide/': [{
                title: '快速指南',
                path: "/guide/"
            }],
            '/db/': [{
                title: '数据库字段约定', // 必要的
                path: '/db/', // 可选的, 标题的跳转链接，应为绝对路径且必须存在
            }, ],
            '/api/': [{
                title: '后端接口约定', // 必要的
                path: '/api/', // 可选的, 标题的跳转链接，应为绝对路径且必须存在
                children: [
                    { title: 'additem', path: '/api/additem' },
                    { title: 'addNew', path: '/api/addNew' },
                    { title: 'addOneCategory', path: '/api/addOneCategory' },
                    { title: 'addTwoCategory', path: '/api/addTwoCategory' },
                    { title: 'adminlogin', path: '/api/adminlogin' },
                    { title: 'delNewById', path: '/api/delNewById' },
                    { title: 'delOneCategoryById', path: '/api/delOneCategoryById' },
                    { title: 'delTwoCategoryById', path: '/api/delTwoCategoryById' },
                    { title: 'delUserById', path: '/api/delUserById' },
                    { title: 'editItem', path: '/api/editItem' },
                    { title: 'editNew', path: '/api/editNew' },
                    { title: 'editOneCategory', path: '/api/editOneCategory' },
                    { title: 'editTwoCategory', path: '/api/editTwoCategory' },
                    { title: 'getAllCategory', path: '/api/getAllCategory' },
                    { title: 'getAllNew', path: '/api/getAllNew' },
                    { title: 'getAllOrder', path: '/api/getAllOrder' },
                    { title: 'getAllUser', path: '/api/getAllUser' },
                    { title: 'getItemDetail', path: '/api/getItemDetail' },
                    { title: 'getSaleResult', path: '/api/getSaleResult' },
                    { title: 'getTwoCategoryById', path: '/api/getTwoCategoryById' },
                    { title: 'searchGoodDetailById', path: '/api/searchGoodDetailById' },
                    { title: 'searchNewByName', path: '/api/searchNewByName' },
                    { title: 'searchOrderByCode', path: '/api/searchOrderByCode' },
                    { title: 'toSendGood', path: '/api/toSendGood' },
                    { title: 'uploadPic', path: '/api/uploadPic' }
                ]
            }],
            // fallback
            '/': [
                ''
            ]
        }, // 侧边栏配置
        sidebarDepth: 0, // 侧边栏显示2级


    }
}